#ifndef BSC_POLL_H
#define BSC_POLL_H

#include "beanstalkclient.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _bsc_poll bsc_poll;

bsc_poll* create_bscpoll();
void destroy_bscpoll(bsc_poll* poll);

void bscpoll_add(bsc_poll* poll, bsc *client);
void bscpoll_remove(bsc_poll* poll, bsc *client);

int  bscpoll_wait(bsc_poll* poll,int timeout_ms);

#ifdef __cplusplus
}
#endif

#endif
